package com.shire.shire_interface.service.tag;

import com.shire.shire_interface.dao.tag.WxTagDao;
import com.shire.shire_interface.model.tag.WxTag;
import com.shire.shire_interface.model.tag.WxTagExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WxTagService {

    @Resource
    private WxTagDao wxTagDao;

    public int insert(WxTag wxTag) {

        return wxTagDao.insertSelective(wxTag);
    }

    public List<WxTag> selectByExample(WxTagExample wxTagExample) {
        return wxTagDao.selectByExample(wxTagExample);
    }

    public int delByPrimaryKey(Integer id) {

        return wxTagDao.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(WxTag wxTag) {

        return wxTagDao.updateByPrimaryKeySelective(wxTag);
    }
}
